how to pass object as arguments in c